package ru.myrtle.umf.codegen.java;

import java.util.Iterator;
import java.util.TreeMap;

public class JavaDocAnnotation {

    private final String name;
    private final TreeMap<String, String> map =
            new TreeMap<String, String>();

    public JavaDocAnnotation(String annotationName) {
        this.name = annotationName;
    }

    public String getName() {
        return name;
    }

    public void clear() {
        map.clear();
    }

    public void addEntry(String key, String value) {
        map.put(key, value);
    }

    public Iterator<String> getKeys() {
        return map.keySet().iterator();
    }

    public String getValue(String key) {
        return map.get(key);
    }
}
